<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <link href="style.css" rel="stylesheet" type="text/css">
        <style type="text/css" media="screen">@import "style.css";</style>
        <title> VideoExpress - PHP Projet</title>
        <SCRIPT TYPE="text/javascript">

            function popupform(myform, windowname)
            {
                if (! window.focus)return true;
                window.open('', windowname, 'height=500,width=550,scrollbars=yes');
                myform.target=windowname;
                return true;
            }

        </SCRIPT>

    </head>
    <body>
        <div class="center">
            <div class="outer" id="outer">
                <div class="outer_l">
                    <div class="outer_r">

                        <!--ENTETE & MENU-->
                        <?php
                        include ("Outils.inc");
                        banniere("VideoExpress","Nguyen Tat Son Tung");
                        ?>
                        <!--FIN ENTETE & MENU-->
                        <!--CONTENT-->
                        <div class="wrap main_content_max" id="main_content">
                            <div class="content">
                                <table class="blog" cellpadding="0" cellspacing="0">
                                    <tr><td valign="top"><div>

                                                <table class="contentpaneopen"><tr>
                                                <td class="contentheading" width="100%">DESCRIPTIF DE FILM</td></tr></table>
                                                <table class="contentpaneopen"><tr><td valign="top" colspan="2">
                                                            <?php
                                                            require ("connect.php");
                                                            $NoFilm=$_POST["NoFilm"];
                                                            $req1="SELECT *"
                                                            ."FROM `films`"
                                                            ."WHERE `NoFilm` LIKE '$NoFilm'" ;
                                                            $req2="SELECT *"
                                                            ."FROM `acteurs`"
                                                            ."WHERE `NoFilm` LIKE '$NoFilm'";
                                                            $resul1 = DB_execSQL($req1,$serv);
                                                            $resul2 = DB_execSQL($req2,$serv);
                                                            $count = mysql_num_rows($resul1);
                                                            if ( $count != 0 ){
                                                                echo '<img src="images/DVD_Player.png"> <br \>';
                                                                while ($film = mysql_fetch_object($resul1)){
                                                                    echo "<fieldset><font size='2'>"
                                                                    ."<b><u>Titre</u></b> : ".$film->Titre."<br \>"
                                                                    ."<b><u>Nationalit&eacute;</u></b> : ".$film->Nationalite."<br \>"
                                                                    ."<b><u>Realisateur</u></b> : ".$film->Realisateur."<br \>"
                                                                    ."<b><u>Couleur</u></b> : ".$film->Couleur."<br \>"
                                                                    ."<b><u>Ann&eacute;e</u></b> : ".$film->Annee."<br \>"
                                                                    ."<b><u>Couleur</u></b> : ".$film->Couleur."<br \>"
                                                                    ."<b><u>Genre</u></b> : ".$film->Genre."<br \>"
                                                                    ."<b><u>Duree</u></b> : ".$film->Duree."<br \>"
                                                                    ."<b><u>Synopsis</u></b> : ".$film->Synopsis."<br \></font>";
                                                                    echo "<font size='2'><b><u>Acteurs</u></b> : </font>";
                                                                }
                                                                while ($acteur = mysql_fetch_object($resul2)){
                                                                    echo "<font size='2'><ul><li> ".$acteur->Acteur." </li></ul></font>";
                                                                }
                                                                echo "</fieldset>";
                                                                echo "<table><tr><td><td><td><td><td><td><td></tr>
                                                                                                                            <tr><td>
                                                                                                                            <div><form method='POST' action='AjoutSelection.php'  onSubmit=\"popupform(this, 'join')\">
                                                                                                                            <input type='hidden' name='NoFilm' value='$NoFilm'>
                                                                                                                            <input type='image' src='images/Insert-icon.png' alt='submit' name='submit' title='Ajouter dans le Panier'><font size='2'> Ajouter Selection  </font>
                                                                                                                            </form></div>
                                                                                                                            </td><td>
                                                                                                                            <div><form method='POST' action='VoirSelection.php'  onSubmit=\"popupform(this, 'join')\">
                                                                                                                            <input type='image' src='images/info.png' alt='submit' name='submit' title='Voir le Panier'><font size='2'> Voir Selection</font>
                                                                                                                            </form></div></td>
                                                                                                                            <td><td><td><td>
                                                                                                                            </tr></table>";

                                                            } else {
                                                                echo '<img src="images/ErrorCircle.png"> <br \>';
                                                                echo "<font size='2'> Desole , Ce film n'a pas trouve</font></fieldset>";
                                                            }


                                                            ?>
                                                </td></tr></table>

                                                <span class="article_separator">&nbsp;</span>

                                </div></td></tr></table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--FIN CONTENT-->
        <!-- PIED -->
<?php include ("inc/inc-pied.php"); ?>
        <!-- FIN - PIED -->
    </body>
</html>
